package jp.dodododo.dao.util;

import java.util.ArrayList;
import java.util.Collection;

public class DbArrayList<T> extends ArrayList<T> {
	private static final long serialVersionUID = -1400549097017247568L;

	public DbArrayList() {
		super();
	}

	public DbArrayList(Collection<? extends T> c) {
		super(c);
	}

	public DbArrayList(int initialCapacity) {
		super(initialCapacity);
	}

	@Override
	public String toString() {
		return dataView + super.toString();
	}

	protected StringBuilder dataView = new StringBuilder();

	public void setHeaderString(StringBuilder headerStr) {
		dataView.append(headerStr);
	}

	public void addRowString(StringBuilder rowStr) {
		dataView.append(rowStr);
	}
}
